<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="1"/>
      <a name="appear" val="center"/>
    </tool>
    <tool name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
    </tool>
    <tool name="Tunnel">
      <a name="width" val="4"/>
    </tool>
    <tool name="Constant">
      <a name="facing" val="north"/>
      <a name="value" val="0x0"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
  </lib>
  <lib desc="#Plexers" name="2"/>
  <lib desc="#Arithmetic" name="3"/>
  <lib desc="#Memory" name="4">
    <tool name="ROM">
      <a name="contents">addr/data: 8 8
0
</a>
    </tool>
  </lib>
  <lib desc="#I/O" name="5"/>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="main"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Menu Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
    </tool>
    <tool lib="0" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
  </toolbar>
  <circuit name="main">
    <a name="circuit" val="main"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(450,440)" to="(510,440)"/>
    <wire from="(290,40)" to="(290,360)"/>
    <wire from="(440,50)" to="(760,50)"/>
    <wire from="(500,300)" to="(500,570)"/>
    <wire from="(480,320)" to="(530,320)"/>
    <wire from="(110,40)" to="(110,240)"/>
    <wire from="(450,450)" to="(450,460)"/>
    <wire from="(650,420)" to="(690,420)"/>
    <wire from="(500,570)" to="(610,570)"/>
    <wire from="(430,290)" to="(460,290)"/>
    <wire from="(590,300)" to="(610,300)"/>
    <wire from="(640,350)" to="(660,350)"/>
    <wire from="(640,510)" to="(660,510)"/>
    <wire from="(640,190)" to="(660,190)"/>
    <wire from="(670,300)" to="(690,300)"/>
    <wire from="(740,450)" to="(760,450)"/>
    <wire from="(360,380)" to="(390,380)"/>
    <wire from="(370,550)" to="(400,550)"/>
    <wire from="(640,260)" to="(670,260)"/>
    <wire from="(400,640)" to="(400,680)"/>
    <wire from="(540,250)" to="(610,250)"/>
    <wire from="(450,530)" to="(450,580)"/>
    <wire from="(800,440)" to="(810,440)"/>
    <wire from="(520,480)" to="(530,480)"/>
    <wire from="(600,400)" to="(610,400)"/>
    <wire from="(600,320)" to="(610,320)"/>
    <wire from="(450,370)" to="(450,440)"/>
    <wire from="(570,440)" to="(690,440)"/>
    <wire from="(460,420)" to="(520,420)"/>
    <wire from="(440,650)" to="(820,650)"/>
    <wire from="(820,300)" to="(820,650)"/>
    <wire from="(720,140)" to="(760,140)"/>
    <wire from="(440,330)" to="(440,350)"/>
    <wire from="(510,560)" to="(610,560)"/>
    <wire from="(800,60)" to="(840,60)"/>
    <wire from="(360,600)" to="(360,680)"/>
    <wire from="(480,320)" to="(480,400)"/>
    <wire from="(440,650)" to="(440,680)"/>
    <wire from="(450,580)" to="(450,610)"/>
    <wire from="(450,500)" to="(450,530)"/>
    <wire from="(660,550)" to="(660,570)"/>
    <wire from="(660,150)" to="(660,190)"/>
    <wire from="(670,480)" to="(670,520)"/>
    <wire from="(370,120)" to="(400,120)"/>
    <wire from="(370,280)" to="(400,280)"/>
    <wire from="(370,440)" to="(400,440)"/>
    <wire from="(660,410)" to="(690,410)"/>
    <wire from="(560,310)" to="(590,310)"/>
    <wire from="(150,40)" to="(150,80)"/>
    <wire from="(640,310)" to="(670,310)"/>
    <wire from="(740,450)" to="(740,610)"/>
    <wire from="(520,230)" to="(740,230)"/>
    <wire from="(800,150)" to="(830,150)"/>
    <wire from="(450,460)" to="(460,460)"/>
    <wire from="(330,40)" to="(330,220)"/>
    <wire from="(290,360)" to="(370,360)"/>
    <wire from="(740,310)" to="(740,370)"/>
    <wire from="(370,500)" to="(370,550)"/>
    <wire from="(560,490)" to="(570,490)"/>
    <wire from="(500,180)" to="(500,300)"/>
    <wire from="(570,430)" to="(570,440)"/>
    <wire from="(810,440)" to="(810,640)"/>
    <wire from="(440,200)" to="(440,330)"/>
    <wire from="(490,470)" to="(680,470)"/>
    <wire from="(110,240)" to="(360,240)"/>
    <wire from="(480,400)" to="(600,400)"/>
    <wire from="(440,200)" to="(610,200)"/>
    <wire from="(720,430)" to="(760,430)"/>
    <wire from="(480,660)" to="(480,680)"/>
    <wire from="(580,290)" to="(580,500)"/>
    <wire from="(590,370)" to="(590,390)"/>
    <wire from="(470,130)" to="(470,410)"/>
    <wire from="(590,370)" to="(740,370)"/>
    <wire from="(500,300)" to="(530,300)"/>
    <wire from="(740,310)" to="(760,310)"/>
    <wire from="(360,80)" to="(390,80)"/>
    <wire from="(360,240)" to="(390,240)"/>
    <wire from="(500,70)" to="(500,180)"/>
    <wire from="(370,500)" to="(390,500)"/>
    <wire from="(150,80)" to="(360,80)"/>
    <wire from="(380,480)" to="(380,530)"/>
    <wire from="(250,530)" to="(380,530)"/>
    <wire from="(520,420)" to="(530,420)"/>
    <wire from="(570,480)" to="(570,490)"/>
    <wire from="(520,670)" to="(520,680)"/>
    <wire from="(360,600)" to="(730,600)"/>
    <wire from="(370,40)" to="(370,60)"/>
    <wire from="(570,480)" to="(670,480)"/>
    <wire from="(360,380)" to="(360,460)"/>
    <wire from="(440,590)" to="(440,620)"/>
    <wire from="(650,400)" to="(650,420)"/>
    <wire from="(670,260)" to="(670,280)"/>
    <wire from="(540,130)" to="(690,130)"/>
    <wire from="(480,660)" to="(830,660)"/>
    <wire from="(430,370)" to="(450,370)"/>
    <wire from="(430,450)" to="(450,450)"/>
    <wire from="(840,60)" to="(840,670)"/>
    <wire from="(450,480)" to="(460,480)"/>
    <wire from="(830,150)" to="(830,660)"/>
    <wire from="(450,370)" to="(590,370)"/>
    <wire from="(560,430)" to="(570,430)"/>
    <wire from="(600,550)" to="(610,550)"/>
    <wire from="(600,320)" to="(600,330)"/>
    <wire from="(430,230)" to="(480,230)"/>
    <wire from="(30,40)" to="(30,500)"/>
    <wire from="(450,490)" to="(450,500)"/>
    <wire from="(470,410)" to="(590,410)"/>
    <wire from="(720,290)" to="(760,290)"/>
    <wire from="(370,360)" to="(370,440)"/>
    <wire from="(590,310)" to="(590,340)"/>
    <wire from="(450,450)" to="(690,450)"/>
    <wire from="(450,610)" to="(740,610)"/>
    <wire from="(580,290)" to="(690,290)"/>
    <wire from="(480,230)" to="(480,320)"/>
    <wire from="(330,220)" to="(370,220)"/>
    <wire from="(590,340)" to="(610,340)"/>
    <wire from="(370,360)" to="(390,360)"/>
    <wire from="(380,530)" to="(400,530)"/>
    <wire from="(540,130)" to="(540,250)"/>
    <wire from="(360,80)" to="(360,140)"/>
    <wire from="(360,240)" to="(360,300)"/>
    <wire from="(430,540)" to="(690,540)"/>
    <wire from="(640,400)" to="(650,400)"/>
    <wire from="(590,360)" to="(590,370)"/>
    <wire from="(460,290)" to="(460,420)"/>
    <wire from="(730,530)" to="(730,600)"/>
    <wire from="(460,290)" to="(580,290)"/>
    <wire from="(440,350)" to="(610,350)"/>
    <wire from="(440,590)" to="(610,590)"/>
    <wire from="(510,520)" to="(610,520)"/>
    <wire from="(500,180)" to="(610,180)"/>
    <wire from="(360,140)" to="(400,140)"/>
    <wire from="(360,300)" to="(400,300)"/>
    <wire from="(360,460)" to="(400,460)"/>
    <wire from="(660,510)" to="(660,530)"/>
    <wire from="(430,130)" to="(470,130)"/>
    <wire from="(590,390)" to="(610,390)"/>
    <wire from="(450,530)" to="(610,530)"/>
    <wire from="(660,530)" to="(690,530)"/>
    <wire from="(510,520)" to="(510,560)"/>
    <wire from="(510,440)" to="(510,490)"/>
    <wire from="(660,350)" to="(660,410)"/>
    <wire from="(370,60)" to="(370,120)"/>
    <wire from="(370,220)" to="(370,280)"/>
    <wire from="(430,70)" to="(500,70)"/>
    <wire from="(720,530)" to="(730,530)"/>
    <wire from="(520,670)" to="(840,670)"/>
    <wire from="(70,40)" to="(70,380)"/>
    <wire from="(510,490)" to="(510,520)"/>
    <wire from="(480,230)" to="(520,230)"/>
    <wire from="(600,400)" to="(600,550)"/>
    <wire from="(400,640)" to="(810,640)"/>
    <wire from="(590,360)" to="(610,360)"/>
    <wire from="(640,570)" to="(660,570)"/>
    <wire from="(670,520)" to="(690,520)"/>
    <wire from="(440,330)" to="(600,330)"/>
    <wire from="(670,280)" to="(690,280)"/>
    <wire from="(450,580)" to="(610,580)"/>
    <wire from="(370,60)" to="(390,60)"/>
    <wire from="(370,220)" to="(390,220)"/>
    <wire from="(250,40)" to="(250,530)"/>
    <wire from="(510,440)" to="(530,440)"/>
    <wire from="(580,500)" to="(610,500)"/>
    <wire from="(520,270)" to="(610,270)"/>
    <wire from="(380,480)" to="(390,480)"/>
    <wire from="(520,420)" to="(520,480)"/>
    <wire from="(440,350)" to="(440,590)"/>
    <wire from="(500,70)" to="(760,70)"/>
    <wire from="(670,300)" to="(670,310)"/>
    <wire from="(590,300)" to="(590,310)"/>
    <wire from="(740,160)" to="(740,230)"/>
    <wire from="(450,480)" to="(450,490)"/>
    <wire from="(440,620)" to="(880,620)"/>
    <wire from="(440,50)" to="(440,200)"/>
    <wire from="(590,410)" to="(590,490)"/>
    <wire from="(70,380)" to="(360,380)"/>
    <wire from="(800,300)" to="(820,300)"/>
    <wire from="(680,470)" to="(680,510)"/>
    <wire from="(590,410)" to="(610,410)"/>
    <wire from="(590,490)" to="(610,490)"/>
    <wire from="(740,160)" to="(760,160)"/>
    <wire from="(660,150)" to="(690,150)"/>
    <wire from="(660,550)" to="(690,550)"/>
    <wire from="(430,490)" to="(450,490)"/>
    <wire from="(510,490)" to="(530,490)"/>
    <wire from="(30,500)" to="(370,500)"/>
    <wire from="(520,230)" to="(520,270)"/>
    <wire from="(450,500)" to="(530,500)"/>
    <wire from="(680,510)" to="(690,510)"/>
    <wire from="(470,130)" to="(540,130)"/>
    <comp lib="0" loc="(480,680)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(640,310)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(560,310)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(70,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="6" loc="(753,471)" name="Text">
      <a name="text" val="P3"/>
    </comp>
    <comp lib="6" loc="(750,90)" name="Text">
      <a name="text" val="P0"/>
    </comp>
    <comp lib="1" loc="(640,260)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(640,570)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(430,540)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="G3"/>
    </comp>
    <comp lib="6" loc="(720,549)" name="Text">
      <a name="text" val="S4"/>
    </comp>
    <comp lib="0" loc="(150,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(370,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(560,490)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(800,60)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="S0"/>
    </comp>
    <comp lib="1" loc="(430,130)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="G0"/>
    </comp>
    <comp lib="0" loc="(290,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="6" loc="(750,329)" name="Text">
      <a name="text" val="P2"/>
    </comp>
    <comp lib="0" loc="(440,680)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(30,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(560,430)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(250,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(640,400)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(800,440)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="S3"/>
    </comp>
    <comp lib="1" loc="(640,510)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
    </comp>
    <comp lib="1" loc="(800,150)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="S1"/>
    </comp>
    <comp lib="1" loc="(430,70)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="P0"/>
    </comp>
    <comp lib="0" loc="(520,680)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="6" loc="(751,178)" name="Text">
      <a name="text" val="P1"/>
    </comp>
    <comp lib="0" loc="(360,680)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(880,620)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="C0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(800,300)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="S2"/>
    </comp>
    <comp lib="0" loc="(400,680)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(720,430)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="4"/>
      <a name="label" val="C3"/>
    </comp>
    <comp lib="6" loc="(748,43)" name="Text">
      <a name="text" val="C0"/>
    </comp>
    <comp lib="0" loc="(110,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(640,350)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(490,470)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(430,450)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="G2"/>
    </comp>
    <comp lib="1" loc="(720,290)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
      <a name="label" val="C2"/>
    </comp>
    <comp lib="1" loc="(720,530)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="label" val="C4"/>
    </comp>
    <comp lib="1" loc="(640,190)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(430,490)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="P3"/>
    </comp>
    <comp lib="1" loc="(430,370)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="P2"/>
    </comp>
    <comp lib="1" loc="(720,140)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="C1"/>
    </comp>
    <comp lib="1" loc="(430,230)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="P1"/>
    </comp>
    <comp lib="0" loc="(330,40)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(430,290)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
      <a name="label" val="G1"/>
    </comp>
  </circuit>
</project>
